package com.example.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.common.utils.R;
import com.example.gulimallproduct.entity.AttrEntity;
import com.example.gulimallproduct.request.SaveAttrRequest;
import com.example.gulimallproduct.request.UpdateAttrRequest;

import java.util.Map;

/**
 * 商品属性
 *
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-24 15:22:38
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R selectPageWhthBase(Map<String, Object> page, Long catId, Integer type);

    R saveAttr(SaveAttrRequest attr);

    R selectInfoById(Long attrId);

    R updateAttr(UpdateAttrRequest attr);
}

